<?php if (isset($_GET['ppcancel'])) {
echo('<!DOC'.'TYPE html>
<ht'.'ml>
	<he'.'ad><scr'.'ipt>
    (function(d, s, id){
      var js, ref = d.getElementsByTagName(s)[0];
      if (!d.getElementById(id)){
        js = d.createElement(s); js.id = id; js.async = true;
        js.src = "//www.paypalobjects.com/js/external/paypal.js";
        ref.parentNode.insertBefore(js, ref);
      }
    }(document, "script", "paypal-js"));
</scr'.'ipt></he'.'ad></ht'.'ml>');
die();
}
?>
<?php
//WA eCart Include
require_once("WA_eCart/ELEVATE954_PHP.php");
?>
<?php
$ELEVATE954->GetContent();
?>
<?php
// WA eCart Update
if (isset($_POST["ELEVATE954_Update_100"]) || isset($_POST["ELEVATE954_Update_100_x"]))     {
  $ELEVATE954->CartUpdate();
  $Redirect_redirStr="";
  if ($Redirect_redirStr != "")     {
    $ELEVATE954->redirStr = $Redirect_redirStr;
  }
  $ELEVATE954->cartAction = "Update";
}
?>
<?php
// WA eCart Continue Shopping
if (isset($_POST["ELEVATE954_Continue_100"]) || isset($_POST["ELEVATE954_Continue_100_x"]))     {
  $Redirect_redirStr="";
  if (true && isset($_SESSION['WAEC_ContinueRedirect'])) {
    $Redirect_redirStr=siteToPageRel($_SESSION['WAEC_ContinueRedirect']);
  }
  if ($Redirect_redirStr != "")     {
    $ELEVATE954->redirStr = $Redirect_redirStr;
  }
  $ELEVATE954->cartAction = "Continue";
}
?>
<?php
// WA eCart Clear Cart
if (isset($_POST["ELEVATE954_Clear_100"]) || isset($_POST["ELEVATE954_Clear_100_x"]))     {
  $ELEVATE954->ClearCart();
  $Redirect_redirStr="";
  if ($Redirect_redirStr != "")     {
    $ELEVATE954->redirStr = $Redirect_redirStr;
  }
  $ELEVATE954->cartAction = "ClearCart";
}
?>
<?php
//WA eCart Redirect Check Out
if (isset($_POST["ELEVATE954_Checkout_1"]) || isset($_POST["ELEVATE954_Checkout_1_x"]))     {
  $Redirect_redirStr="checkout.php";
  if ($Redirect_redirStr != "")     {
    if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "")     {
      if (strpos($Redirect_redirStr, "?") === false)     {
        $Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
      }
      else     {
        $Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
      }
    }

    $ELEVATE954->redirStr = $Redirect_redirStr;
  }
  $ELEVATE954->cartAction = "Checkout";
}
?>
<?php
// WA eCart Redirect
if ($ELEVATE954->redirStr != "")     {
  header("Location: ".$ELEVATE954->redirStr);
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="WA_eCart/CSS/eC_Clean_Nautica_Tahoma.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="eC_Clean_Nautica_Tahoma">
  <?php
//WA eCart Show If Start
if (!$ELEVATE954->IsEmpty())     {
?>
    <div id="eC_Clean_Nautica_Tahoma" class="eC_Display">
      <form action="<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>" method="post" >
        <h2>Your Shopping Cart</h2>
        <table class="eC_ShoppingCart" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <th >Item</th>
            <th >&nbsp;</th>
            <th class="eC_PriceItem desktop_only">Price</th>
            <th class="eC_FormItem">Quantity</th>
            <th class="eC_FormItem desktop_only">Remove</th>
            <th class="eC_PriceItem desktop_only">Total</th>
          </tr>
          <?php
while (!$ELEVATE954->EOF())      {
?>
            <tr class="eC_DataRow">
              <td ><img src="images/products/<?php echo $ELEVATE954->DisplayInfo("Thumbnail"); ?>" alt="Product thumbnail" class="eC_ProductThumb" /></td>
              <td  class="eC_GroupColumn"><p id="ELEVATE954_JSON_Display_Name_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" class="eC_ItemName"><?php echo $ELEVATE954->DisplayInfo("Name"); ?></p>
                <p id="ELEVATE954_JSON_Display_Description_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" class="eC_ItemDescription min_tablet"><?php echo $ELEVATE954->DisplayInfo("Description"); ?></p>
                <p id="ELEVATE954_JSON_Display_Price_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" class="eC_ItemPrice max_tablet"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->DisplayInfo("Price")); ?></p>
                <p class="eC_ItemRemove_Link max_tablet"><a href="#" onclick="waec_update('Remove','ELEVATE954_Quantity_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>',this);">Remove</a></p></td>
              <td class="eC_PriceItem desktop_only" id="ELEVATE954_JSON_Display_Price_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->DisplayInfo("Price")); ?></td>
              <td  class="eC_GroupColumn"><p class="eC_FormItem eC_ItemQuantity_AJAX max_tablet">
                <input type="text" id="ELEVATE954_Quantity_link_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" name="ELEVATE954_Quantity_link_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" size="3" value="<?php echo $ELEVATE954->DisplayInfo("Quantity"); ?>" onkeypress="waec_showUpdate('ELEVATE954_Update_Quantity_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>',this);" />
                <br />
                <a href="#" id="ELEVATE954_Update_Quantity_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" onclick="waec_update('Quantity','ELEVATE954_Quantity_link_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>',this);" style="display:none;">Update</a></p>
                <p class="eC_FormItem eC_ItemQuantity_Edit desktop_only">
                  <input type="text" id="ELEVATE954_Quantity_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" name="ELEVATE954_Quantity_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" size="3" value="<?php echo $ELEVATE954->DisplayInfo("Quantity"); ?>" onkeypress="waec_showUpdate('ELEVATE954_Update_Quantity_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>',this);" />
                </p></td>
              <td class="eC_FormItem desktop_only"><input type="checkbox" value="<?php echo $ELEVATE954->DisplayInfo("ID"); ?>" name="ELEVATE954_Delete_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>" /></td>
              <td class="eC_PriceItem desktop_only" id="ELEVATE954_JSON_Display_TotalPrice_<?php echo $ELEVATE954->DisplayInfo("WAUID"); ?>"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->DisplayInfo("TotalPrice")); ?></td>
            </tr>
            <?php
  $ELEVATE954->MoveNext();
}
$ELEVATE954->MoveFirst();
?>
        </table>
        <div class="eC_OrderSummary">
          <table border="0" cellpadding="0" cellspacing="0" class="eC_CartSummary">
            <?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetDiscounts() > 0 || $ELEVATE954->GetCharges() > 0 || $ELEVATE954->GetShipping() > 0 || $ELEVATE954->GetTax() > 0)     {
?>
            <tr>
              <td class="eC_Subtotal eC_SummaryLabel">Sub-total</td>
              <td class="eC_Subtotal" id="ELEVATE954_JSON_Display_SubTotal"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->TotalColumn("TotalPrice")); ?></td>
            </tr>
            <?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?>
            <?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetDiscounts() > 0)     {
?>
            <?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?>
            <?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetCharges() > 0)     {
?>
            <?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?>
            <?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetShipping() > 0)     {
?>
            <tr>
              <td class="eC_SummaryLabel">Shipping</td>
              <td id="ELEVATE954_JSON_Display_@@ChargeNameType@@"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->GetShipping()); ?></td>
            </tr>
            <?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?>
            <?php
//WA eCart Merchandizing Show Start
//ecart="ELEVATE954"
if ($ELEVATE954->GetTax() > 0)     {
?>
            <tr>
              <td class="eC_SummaryLabel">Tax</td>
              <td id="ELEVATE954_JSON_Display_@@ChargeNameType@@"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->GetTax()); ?></td>
            </tr>
            <?php
//WA eCart Merchandizing Show End
//ecart="ELEVATE954"
}
?>
            <tr class="eC_SummaryFooter">
              <td class="eC_SummaryLabel">Grand Total:</td>
              <td id="ELEVATE954_JSON_Display_GrandTotal"><?php echo WA_eCart_DisplayMoney($ELEVATE954, $ELEVATE954->GrandTotal()); ?></td>
            </tr>
          </table>
        </div>
        <table class="eC_ButtonWrapper" cellpadding="0" cellspacing="0">
          <tr>
            <td><input type="submit" name="ELEVATE954_Continue_100" id="ELEVATE954_Continue_100" value="Continue Shopping" class="eC_FormButton" />
              <input type="submit" name="ELEVATE954_Clear_100" id="ELEVATE954_Clear_100" value="Clear Cart" class="eC_FormButton desktop_only" />
              <input type="submit" name="ELEVATE954_Update_100" id="ELEVATE954_Update_100" value="Update" class="eC_FormButton desktop_only" />
              <input name="ELEVATE954_Checkout_1" type="submit" class="eC_FormButton" id="ELEVATE954_Checkout" formaction="cart_display.php" value="Checkout" /></td>
          </tr>
        </table>
      </form>
    </div>
    <?php
//WA eCart Show If Middle
}
else     {
?>

    <?php
//WA eCart Show If End
}
?>
  <table id="eC_Clean_Nautica_Tahoma_Empty" style="<?php echo(!$ELEVATE954->IsEmpty()?'display:none;':''); ?>">
    <tr>
      <td>The cart is empty</td>
    </tr>
  </table>
</div>
<script>
var ecart_json = "WA_eCart/eCart1_JSON.php";
</script>
<script src="WA_eCart/js/eC_Display.js"></script>
</body>
</html>